﻿@{
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
    ViewBag.Title = "网非e学院--申请代理";
}
<div style="margin-top:20px; text-align:center">
    <img src="~/Image/logoDaili.jpg" style="width:90%;" />
</div>
<div class="ap_Apply">
    <div class="ap_ApplyTitle">
        网非教育代理申请
    </div>
    <div>
        针对越来越多的新时代家长希望成为更好的父母，我们倾力打造了一个专业家庭教育直播平台——网非。
        如果您有这方面的兴趣，欢迎您申请加入网非家庭！<br /><br />
        填写表单后我们会在3个工作日内联系您。
    </div>
</div>
<br />
<form id="formApply" method="post" >
    <div class="weui_cells weui_cells_form" >
        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">真实姓名</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="真实姓名" name="RealName" id="txtRealName">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">现居城市</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="现居城市" name="City" id="txtCity">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">身份证号</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="身份证号" name="IDCard" id="txtIDCard">
            </div>
        </div>
        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">联系方式</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="联系方式" name="Phone" id="txtPhone">
            </div>

        </div>
        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">通信地址</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="通信地址" name="Address" id="txtAddress">
            </div>

        </div>
        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">工作单位</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="工作单位" name="Company" id="txtCompany">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">担任职务</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="担任职务" name="Position" id="txtPosition">
            </div>
        </div>

        <div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label" >申请理由</label></div>
                    <textarea class="weui_textarea" placeholder="申请理由" rows="3" name="Reason" id="txtReson"></textarea>
                    <div class="weui_textarea_counter"><span>0</span>/200</div>
                </div>
            </div>
        </div>

        <div class="weui_btn_area">
            <div id="errorInfo" class="error">
                @ViewBag.ErrorInfo
            </div>
            <span class="customBtn" onclick="Apply()">点击提交</span>
            <br /><br />
            <div style="text-align:center;font-size:13px;">填写表单后我们会在三个工作日内联系您。</div>
            <br /><br />
        </div>
    </div>
</form>

<script>

    function Apply() {

        if ($("#txtRealName").val() == "") {
            $("#errorInfo").html("请输入真实姓名！");
            return;
        }

        if ($("#txtCity").val() == "") {
            $("#errorInfo").html("请输入现居城市！");
            return;
        }

        if ($("#txtIDCard").val() == "") {
            $("#errorInfo").html("请输入身份证号！");
            return;
        }

        if ($("#txtPhone").val() == "") {
            $("#errorInfo").html("请输入联系方式！");
            return;
        }

        if ($("#txtAddress").val() == "") {
            $("#errorInfo").html("请输入通信地址！");
            return;
        }

        if ($("#txtCompany").val() == "") {
            $("#errorInfo").html("请输入工作单位！");
            return;
        }

        if ($("#txtPosition").val() == "") {
            $("#errorInfo").html("请输入担任职务！");
            return;
        }

        if ($("#txtReson").val() == "") {
            $("#errorInfo").html("请输入申请理由！");
            return;
        }
        //location.href = "../MyInfo/ApplySucceful";
        $("#formApply").submit();
    }

    //底部导航选中
    $("#ImgWode").attr("src", "../../Image/logoWodeSel.png");
</script>
